import Vue from 'vue'
import App from './App.vue'

import { Toast } from 'vant'
import { CountDown } from 'vant'
import './style/common.scss'
import 'vant/lib/index.css'
import VueRouter from 'vue-router'
import router from './router'
import Fingerprint from 'fingerprintjs'
import { Dialog, Loading, Progress } from 'vant'
import { Button } from 'vant'
import { Overlay } from 'vant'
import bridge from '../../utils/JsBridge'
import './utils/rem-land.js'
import VueAnimateNumber from 'vue-animate-number'

Vue.use(VueAnimateNumber)
// import LogRocket from 'logrocket';
// LogRocket.init('slxmlu/zhaochai');
// LogRocket.identify('THE_USER_ID_IN_YOUR_APP', {
//   name: 'James Morrison',
//   email: 'jamesmorrison@example.com',

//   // Add your own custom user variables here, ie:
//   subscriptionType: 'pro'
// });
// import 'lib-flexible/flexible'
Vue.use(Button)

window.localStorage.setItem('deviceId', new Fingerprint().get())

Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.use(Progress)
Vue.use(Toast)
Vue.use(CountDown)
Vue.use(Dialog)
Vue.use(Overlay)
Vue.use(Loading)
Vue.prototype.$bridge = bridge
new Vue({
  render: h => h(App),
  router,
}).$mount('#app')

if (process.env.ENV !== 'prod') {
  const VConsole = require('vconsole')
  // eslint-disable-next-line
  new VConsole()
}
